703f53c99b310552cc712cd25d364c24556de184,src/org/opencms/staticexport/CmsLinkManager.java,CmsLinkManager,getSitePath,#CmsObject#String#String#,189

Before Change


        // uri with relative path is relative to the given relativePath if available, otherwise invalid
        if (!uri.getPath().startsWith("/")) {
            if (relativePath != null) {
                return cms.getRequestContext().addSiteRoot(relativePath + uri.getPath());
            } else {
                return null;
            }

After Change


        if (!uri.getPath().startsWith("/")) {
            if (relativePath != null) {
                String absolutePath = getAbsoluteUri(uri.getPath(), cms.getRequestContext().addSiteRoot(relativePath));
                if (absolutePath.startsWith(cms.getRequestContext().getSiteRoot())) {
                    return absolutePath;
                } 
            }